﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Housing;
public partial class HouseKeep_LoadChangeApply : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request.QueryString["effectdate"]== null)
        {
            WebHelper.AlertAndClose("参数effectdate出错");
        }

        if (!String.IsNullOrEmpty(Request.QueryString["applyid"]))
        {
            string oldApplyID = Request.QueryString["applyid"];
            int newApplyID=Apply.GetNewestApplyIdByOldApplyidAndEffictDate(oldApplyID, Request.QueryString["effectdate"]);
            Response.Redirect("../StreetCenter/AddApply.aspx?applyid=" + newApplyID.ToString() + "&thetype=change&effectdate=" + Request.QueryString["effectdate"]);

        }
        else
            WebHelper.AlertAndClose("参数applyid出错");
        


    }
}
